<%
    String path = request.getContextPath();
%>

<script type="text/javascript" src="<%=path%>/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/base.js"></script>
<input type="hidden" id="path" value="<%=path%>" />